From: Matthias Clasen Date: Wed, 12 Jun 2013 02:59:12 +0000 (-0400) Subject: logout dialog: Show the correct text right away X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4053 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2af4925d95ad98707121ff8e5195b0ca8a68bc46;p=gnome-shell.git logout dialog: Show the correct text right away The end session dialog was waiting a second before updating its text to display the timer. It is nicer to show the correct message from the start. https://bugzilla.gnome.org/show_bug.cgi?id=702056 --- diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index fa606193f..c36f5532d 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -420,6 +420,7 @@ const EndSessionDialog = new Lang.Class({ _startTimer: function() { let startTime = GLib.get_monotonic_time(); this._secondsLeft = this._totalSecondsToStayOpen; + this._updateDescription(); this._timerId = Mainloop.timeout_add_seconds(1, Lang.bind(this, function() {